<?php

namespace app\index\controller;

use app\index\model\Banner as BannerModel;
use app\index\model\Config as ConfigModel;
use think\Controller;
use think\Request;

class NewProduct extends BaseController
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $banner = BannerModel::getBanner('social');
        $action = $request->action();
        $this->assign('banner', $banner);
        $this->assign('action', $action);
    }

    /**
     * 大餐/嗨吃酵素饮
     */
    public function hcjsy()
    {
        $hcjsy = ConfigModel::getBaseValue('hcjsy');
        $this->assign('hcjsy', $hcjsy);
        return $this->fetch();
    }

    /**
     * 小纤棒奇亚籽
     */
    public function xqbqyz()
    {
        $xqbqyz = ConfigModel::getBaseValue('xqbqyz');
        $this->assign('xqbqyz', $xqbqyz);
        return $this->fetch();
    }

    /**
     * 小纤棒葡萄
     */
    public function xqbpt()
    {
        $xqbpt = ConfigModel::getBaseValue('xqbpt');
        $this->assign('xqbpt', $xqbpt);
        return $this->fetch();
    }

    /**
     * 薄荷酵素软糖
     */
    public function bhjsrt()
    {
        $bhjsrt = ConfigModel::getBaseValue('bhjsrt');
        $this->assign('bhjsrt', $bhjsrt);
        return $this->fetch();
    }

    /**
     * 小蜜管
     */
    public function xmg()
    {
        $xmg = ConfigModel::getBaseValue('xmg');
        $this->assign('xmg', $xmg);
        return $this->fetch();
    }
}
